<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/common/taglibs.jsp"%>
<html>
<head>
<title></title>
<%@include file="/common/meta.jsp"%>
<%@include file="/common/ec.jsp"%>
</head>
<body>
<div class="x-panel-header">
	&nbsp;公共费用分摊管理&nbsp;&nbsp;&nbsp;&nbsp;
</div>
<div class="x-toolbar" align="right" style="padding:5px;">
  <a href="editNew.do"><img src="${ctx}/images/icons/add.gif">&nbsp;新增费用分摊</a>
  &nbsp;&nbsp;
</div>
<div style="margin-left:-2px;">
<ec:table items="items" var="item" retrieveRowsCallback="process" sortRowsCallback="process" 
	action="index.do" 
	useAjax="false"
	doPreload="false" 
	pageSizeList="20,50" 
	editable="false"
	sortable="false" 
	rowsDisplayed="20" 
	generateScript="true"
	resizeColWidth="false" 
	classic="false" 
	width="100%" 
	height="320px"
	minHeight="320"
	showHeader="true"
	toolbarContent="navigation|pagejump|pagesize|refresh|extend|status">
	<ec:row>
		<ec:column width="50" property="_no." title="No." value="${GLOBALROWCOUNT}" style="text-align:center;" />
		<ec:column width="120" property="creater.name" title="制单人" />
		<ec:column width="90" property="year" title="年度" />
		<ec:column width="120" property="_amount" title="总额" style="text-align:right">
		  <span style="color: green">${item.amount}￥</span>
		</ec:column>
		<ec:column width="120" property="_opt" title="操作1" style="text-align:center;">
		  <a href="edit.do?model.id=${item.id}">编辑</a>
	      <a href="#" onclick="removeData(id)">删除</a>
		</ec:column>
	</ec:row>
</ec:table>
</div>
<script type="text/javascript">
function removeData(id){
	if (confirm("确认要删除该数据吗...")){
		window.location.href = "remove.do?model.id=" + id;
	}
}
		
</script>
</body>
</html>